package com.ts.api.module.api.convert.infoflow.context;

import com.ts.api.module.api.convert.infoflow.convert.ApiInfoFlowConvert;
import com.ts.api.module.api.convert.infoflow.handler.ApiInfoFlowConvertHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *  信息流转换器上下文
 *
 *  @author Pan
 */
@Component
public class ApiInfoFlowConvertContext {

    @Autowired
    private ApiInfoFlowConvert apiInfoFlowPublisher;

    /**
     *  获取-信息流上下文
     *
     *  @author Pan
     *  @param  apiClientId  客户端id
     *  @return ApiInfoFlowConvertHandler
     */
    public ApiInfoFlowConvertHandler getInfoFlow(String apiClientId) {
        return apiInfoFlowPublisher.getHandler(apiClientId);
    }
}
